package cn.juque.lucenecandy.core.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>ConfigHandler</li>
 * </ul>
 * @date 2023-12-27
 **/
@Data
@Component("luceneCandyConfig")
public class LuceneCandyConfig {

    public static final String BEAN_ID = "luceneCandyConfig";

    @Value("${lucene-candy.data-path}")
    private String dataPath;

    @Value("${lucene-candy.ip-protocol:http}")
    private String protocol;

    @Value("${lucene-candy.ip:'127.0.0.1:8080'}")
    private String ip;

    @Value("${lucene-candy.secret:lucene1dr3Candy}")
    private String secret;

    @Value("${lucene-candy.data-sync:default}")
    private String dataSync;
}
